<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>

<html>
<head>
	<title>Test</title>
</head>
<body>
<h1>
	Infopage:
</h1>

<p>There is <c:forEach var="a" items="${infoage}"> ${a.age}</c:forEach> worth of data in the database.</p>

<c:set var="sessions" value="${numsessions}"></c:set>
<p>There are ${sessions} distinct sessions in the database.</p>

<p>The following Service Types are present in the database:
<list>
<c:forEach var="line" items="${servicetypes	}" varStatus="status">
<ul>${line.servicetypename }</ul>
</c:forEach>
</list>
</p>

<p>The following Drivers are present in the database:
<list>
<c:forEach var="line" items="${drivernames}" varStatus="status">
<ul>${line.entityname }</ul>
</c:forEach>
</list>
</p>

<p>The following Engines are present in the database:
<list>
<c:forEach var="line" items="${enginenames}" varStatus="status">
<ul>${line.entityname }</ul>
</c:forEach>
</list>
</p>

<p>In the past 24 hours, the following total compute times per serviceType were reached:
<list>
<c:forEach var="line" items="${hoursums}" varStatus="status">
<ul>${line.servicetypename } : ${line.sum }</ul>
</c:forEach>
</list>
</p>

 <table border="1">
                <th>ID</th>
                <th>Date</th>
                <th>Severity</th>
                <th>Source</th>
                <th>Entity</th>
                <th>Name</th>
                <th>State</th>
                <th>Type</th>
                <th>Session</th>
                <th>Task</th>
                <c:set var="time" value="${time}"></c:set>
                <c:forEach var="line" items="${query}" varStatus="status">
                <tr>
                  <!--    <td>${status.index + 1}</td> -->
                    <td>${line.id}</td>
                    <td>${line.timestamp}</td>
                    <td>${line.severity}</td>
                    <td>${line.source}</td>
                    <td>${line.entity}</td>
                    <td>${line.entityname}</td>
                    <td>${line.state}</td>
                    <td>${line.servicetypename}</td>
                    <td>${line.sessionid}</td>
                    <td>${line.taskid}</td>         
                </tr>
                </c:forEach>             
            </table>


<P>  The query duration was ${time} millis. </P>
</body>
</html>
